package com.cmcc.aregister.cs.model;

import java.io.Serializable;

/**
 * @author swq
 * 
 */
public class Schedule implements Serializable, Comparable<Schedule> {
    /**
	 * 
	 */
    private static final long serialVersionUID = 7337026267471530091L;

    @Override
    public int compareTo(Schedule anthor) {
        return to_date.compareTo(anthor.to_date);
    }

    /**
     * 班次
     */
    public String schedule_id;
    /**
     * 号源ID
     */
    public String detl_id;
    /**
     * 就诊开始时间
     */
    public String begin_time;
    /**
     * 就诊结束时间
     */
    public String end_time;
    /**
     * 出诊日期
     */
    public String to_date;
    /**
     * 班别
     */
    public String time_type;
    /**
     * 剩余号源
     */
    public String left_num;
    /**
     * 医生
     */
    public Doctor doctor;

    @Override
    public String toString() {
        return "schedule_id:" + schedule_id + "to_date:" + to_date
            + "time_type: " + time_type + " left_num: " + left_num + "\n";
    }

}